﻿@using eBusiness.App_DAL
<!DOCTYPE html>

@{
    var _unitOfWork = new UnitOfWork();
}

<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/normalize.css")" />
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/demo.css")" />
    <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/component.css")"/>
    <script src="@Url.Content("~/Scripts/modernizr.custom.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
</head>
<body>
    <div class="page">
        <header>
            <div id="title">
                <h1>My MVC Application</h1>
            </div>
            @*<div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>*@
            <div style="display: block">
            @*<section class="color-5">*@
                <nav class="cl-effect-12">
                    <a href="@Url.Action("Index", "Home")">Home</a>
                    <a href="@Url.Action("Index", "Products")">Cooking Funiture</a>
                    <a href="@Url.Action("Index", "News")">Manufacture</a>
                    <a href="@Url.Action("Index", "Categories")">Digital</a>
                    <a href="@Url.Action("Index", "Status")">Home Funiture</a>
                    <a href="@Url.Action("Index", "News")">About</a>
                    <a href="@Url.Action("Index", "News")">Contact</a>
                </nav>
            @*</section>*@
            </div>
            @*<nav>
                <ul id="menu">
                    <li>@Html.ActionLink("Home", "Index", "Home")</li>
                    <li>@Html.ActionLink("About", "About", "Home")</li>
                    <li>@Html.ActionLink("Status", "Index", "Status")</li>
                </ul>
            </nav>*@
        </header>
        <div class="pageBody">
            <div class="leftMenu">
                @Html.Partial("_MenuPartial", _unitOfWork.CategoryRepository.Get(c => c.ParentID == null || c.ParentID < 0).ToList())
            </div>
            <div class="centerBody">
                <section id="main">
                    @RenderBody()
                </section>
            </div>
            <div class="rightBody">
                <div>
                    @Html.Partial("_HotProductPartial", _unitOfWork.ProductRepository.Get(c => c.IsHot && c.IsDeleted == false, pageSize: 5, pageNumber: 1, orderby: o => o.OrderByDescending(a => a.CreatedDate),includeProperties:"Status,Categories").ToList())
                </div>
            </div>
            <div class="clearboth"><span></span></div>
        </div>
        <footer>
        </footer>
    </div>
</body>
</html>
